
package com.probiz.estore.content.model;


public class ContentConstants {

	public static enum RELATED_SOURCE_TYPE {
		CONTENT, CATEGORY
	};


	public static final String		RELATED_TYPE_SOURCE_CONTENT			= "CONTENT";
	public static final String		RELATED_TYPE_SOURCE_CATEGORY		= "CATEGORY";

	public static final int			DEFAULT_RELATED_CONTENT_COUNT		= 10;
	// 关联规则
	public static final int			RELATED_RULE_CODE_NONE				= 0;			// 无自动推荐规则
	public static final int			RELATED_RULE_CODE_KEYWORDS			= 1;			// 同目录关键词相关规则（适用于文章）
	public static final int			RELATED_RULE_CODE_NEWEST		    = 2;			// 目录内最新文章(适用于文章目录)
	public static final int			RELATED_RULE_CODE_VIEWCOUNT		    = 3;			// 目录内点击率排行从多到小(适用于文章目录)

	// 规则排序
	public static final int			RELATED_RULE_SORT_ASC				= 1;
	public static final int			RELATED_RULE_SORT_DESC				= -1;
	
	// 关联文章 source 类型
	public static final int   RELATED_SOURCE_KIND_CONTENT     = 0;  //源是文章
	public static final int   RELATED_SOURCE_KIND_CONTENTCATEGORY     = 1;  //源是文章目录
	
	public static final String VIEW_CONTENT_ID_LIST = "VIEW_CONTENT_ID_LIST";

}
